package com.xiaominfo.oss.sdk;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author lien
 * @Date 2019/12/24 16:04
 * @Description client配置文件属性
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OSSClientProperty implements Serializable {

    private static final long serialVersionUID = 3879263642969029976L;

    /***
     * 远程oss上传地址
     */
    private String remote;

    /***
     * 项目名称
     */
    private String project;

    /**
     * 应用appId
     */
    private String appid;

    /**
     * 应用签名密钥
     */
    private String appsecret;

    /**
     * 原始地址
     */
    private String originalUrl;

    public OSSClientProperty(String remote, String project) {
        this.remote = remote;
        this.project = project;
    }
    public OSSClientProperty(String remote, String project, String appid, String appsecret) {
        this.remote = remote;
        this.project = project;
        this.appid = appid;
        this.appsecret = appsecret;
        this.originalUrl = remote;
    }

    public OSSClientProperty(String remote) {
        this.remote = remote;
    }

}
